package sch.frog.creational.simplebuilder;

public class ObjectABuilder {

    private int a = 0;

    private int b = 1;

    private int c;

    private boolean d = false;

    private String e = null;

    private long f = 0;

    private double g = 0;

    public ObjectABuilder() {
    }

    public ObjectA builder(){
        if(c == 0){
            throw new IllegalStateException("c is not assign.");
        }
        return new ObjectA(a, b, c, d, e, f, g);
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    public boolean isD() {
        return d;
    }

    public void setD(boolean d) {
        this.d = d;
    }

    public String getE() {
        return e;
    }

    public void setE(String e) {
        this.e = e;
    }

    public long getF() {
        return f;
    }

    public void setF(long f) {
        this.f = f;
    }

    public double getG() {
        return g;
    }

    public void setG(double g) {
        this.g = g;
    }


}
